package com.xzp;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration;

//不加下面的启动时会报错 (exclude = {DataSourceAutoConfiguration.class, HibernateJpaAutoConfiguration.class})
@SpringBootApplication
public class GirlApplication {

    public static void main(String[] args) {
        SpringApplication springApplication = new SpringApplication(GirlApplication.class);
        springApplication.setAddCommandLineProperties(false); //上述两句可以禁止命令修改属性值
        SpringApplication.run(GirlApplication.class, args);
    }
}
